package com.byd.model;

import com.byd.utils.Lg;

public class MyThread extends Thread {
	private static int ID = 0;

	public MyThread(String name, Runnable r) {
		super(r);
		setName(name + "(id:" + ID++ + ")");
	}

	@Override
	public void run() {
		Lg.v("start run: " + getName());
		try {
			super.run();
		}
		catch (final Exception e) {
			Lg.printStackTrace(e);
		}
		Lg.d("finish run: " + getName());
	}
}
